<?php TPL::output('admin/admin_header.tpl.htm'); ?>

<script src="<?php echo G_STATIC_URL; ?>/js/ajaxupload.js" type="text/javascript"></script>
<script src="js/jquery.validate.min.js" language="javascript"></script>

<body >

<div id="body-wrapper">
	<div id="main-content">
		<div class="clear"></div>
		<div class="content-box">
			<div class="content-box-header">
				<h3><?php echo $this->crumb['last']['name']; ?></h3>
				<ul class="content-box-tabs">
				</ul>
				<div class="clear"></div>
			</div>
			<div class="content-box-content">
			
			<div id="notification_box" class="notification success png_bg" style="display:none;">
				<a class="close" href="javascript:;"></a>
				<div name="notification_content"></div>
			</div>
			
				<div class="tab-content default-tab" id="tab1">
					<form id="_save_form" action="admin/topic/save_ajax/topic_id-<?php echo $this->topic['topic_id']; ?>" method="post">
					<input type="hidden" name="refer" value="<?php echo $this->refer;?>" />
					<fieldset>
					<p>
						<label>话题标题：
							<input class="text-input small-input" type="text" name="topic_title" id="topic_title" value="<?php echo $this->topic['topic_title']; ?>" name="small-input" />
						</label>
					</p>
					<p>
						<label>话题描述：</label>
							<textarea name="topic_description" id="topic_description" cols="100" rows="3"><?php echo $this->topic['topic_description']; ?></textarea>
					</p>
					<p>
						<label>缩略图：</label>
						<p><img src="<?php echo $this->topic['topic_pic_max']; ?>" id="topic_pic"/></p>
						<input name="topic_pic" class="upload-input" type="file">
					</p>
					<!--p>
						<label>是否为顶级话题：</label>
						<input type="radio" name="is_top" id="is_top" value="1"<?php if($this->topic['is_top'] == "1") echo " checked";?>/>是&nbsp;&nbsp;<input type="radio" name="is_top" id="is_top" value="0"<?php if($this->topic['is_top'] == "0") echo " checked";?>/>否
						
					</p-->
					<p>
						<label>是否锁定话题：</label>
						<input type="radio" name="topic_lock" id="topic_lock" value="1"<?php if($this->topic['topic_lock'] == "1") echo " checked";?>/>是&nbsp;&nbsp;<input type="radio" name="topic_lock" id="topic_lock" value="0"<?php if($this->topic['topic_lock'] == "0") echo " checked";?>/>否
					</p>
					<!--p>
						<label>设置父话题：
							<input type="hidden" id="parent_id" name="parent_id" value="<?php echo $this->topic['parent_id'];?>"/>
						  <a href="javascript:;" id="topic_parent_name" onClick="edit_topic_parent(<?php echo $this->topic['topic_id']; ?>, <?php echo empty($this->parent_topic['parent_id']) ? 0 : $this->parent_topic['parent_id']; ?>, 'topic_parent_name')">
						  <?php if($this->topic['parent_id'] == 0){ ?>
						  点击设置父话题
						  <?php }else if($this->topic['parent_id'] > 0){ ?>
						  <?php echo $this->parent_topic['topic_title']; ?>
						  <?php } ?>
						  </a>
						  <a>
						  <img src="<?php echo G_STATIC_URL;?>/admin/images/icons/hammer_screwdriver.png"/>
						  </a>
						  </label>
						</p-->
						
						<p>
							<input class="button" type="button" onClick="ajax_post($('#_save_form'), _form_process);" value="  保  存  " />
						</p>
						</fieldset>
						<div class="clear"></div>
					</form>
				</div>
		</div>
		
		<div class="clear"></div>
		<div id="notf_tip" style="display:none;" class="notification png_bg"> <a href="javascript:;" class="close2"><img src="<?php echo G_STATIC_URL;?>/admin/images/icons/cross_grey_small.png" alt="关闭" /></a>
			<div id="notf_cont"></div>
		</div>
		
	</div>
</div>

<?php TPL::output('admin/admin_footer.tpl.htm'); ?>